package com.threeti.jiayusms.domain.service.communicationrule;

import com.threeti.jiayusms.domain.model.CommunicationRule;
import com.threeti.jiayusms.framework.util.DynaSearchCriteria;
import com.threeti.jiayusms.framework.util.PagedListHandler;

public interface CommunicationRuleQueryService {

	public CommunicationRule findCommunicationRuleBy(Long ruleId);

	/** 根据通信规则编号取得特定的通信规则 */
	CommunicationRule findCommunicationRuleBy(String ruleId);

	/** 分页取得所有通信规则(无条件查询) */
	PagedListHandler<CommunicationRule> findAllRuleTemplatesByPage(
			int currentPageIndex, int startingIndex);

	/** 根据条件(模糊)查询取得通信规则 */
	PagedListHandler<CommunicationRule> findRuleTemplatesByPage(
			DynaSearchCriteria dynaSearchCriteria, int currentPageIndex,
			int startingIndex);
}
